package com.gykj.admin.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "RS_ROLE_RESOURCES")
public class RoleResources implements Serializable {
	
    public RoleResources() {
	}
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID")
    private Integer id;
    
    @Column(name = "ROLE_ID")
    private Integer roleId;

    @Column(name = "RESOURCES_ID")
    private Integer resourcesId;

    @Column(name = "VERSION")
    private Integer version;

    @Column(name = "CREATE_TIME")
    private Date createTime;

    @Column(name = "LAST_UP_TIME")
    private Date lastUpTime;

    @Column(name = "STATUS")
    private Integer status;

    @Column(name = "REMARK")
    private String remark;

    @Column(name = "IS_VALID")
    private Integer isValid;
    
    @Transient
    private String resourcesIdStr;

    /**
     * @return ROLE_ID
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * @param roleId
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * @return RESOURCES_ID
     */
    public Integer getResourcesId() {
        return resourcesId;
    }

    /**
     * @param resourcesId
     */
    public void setResourcesId(Integer resourcesId) {
        this.resourcesId = resourcesId;
    }

    /**
     * @return ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return VERSION
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * @param version
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * @return CREATE_TIME
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return LAST_UP_TIME
     */
    public Date getLastUpTime() {
        return lastUpTime;
    }

    /**
     * @param lastUpTime
     */
    public void setLastUpTime(Date lastUpTime) {
        this.lastUpTime = lastUpTime;
    }

    /**
     * @return STATUS
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return REMARK
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * @return IS_VALID
     */
    public Integer getIsValid() {
        return isValid;
    }

    /**
     * @param isValid
     */
    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

	public String getResourcesIdStr() {
		return resourcesIdStr;
	}

	public void setResourcesIdStr(String resourcesIdStr) {
		this.resourcesIdStr = resourcesIdStr;
	}
    
}